<?php


namespace App\Http\Controllers\Api;
use App\Models\StatisticsNum;
use Dingo\Api\Http\Request;

class SearchCategoryController extends BaseController
{
    /**
     * 列表
     * @param Request $request
     * @return mixed
     */
    public function index(Request $request) {
        $city = StatisticsNum::where('type', StatisticsNum::TYPE_CITY)->get();
        $position = StatisticsNum::where('type', StatisticsNum::TYPE_POSITION)->get();
        return $this->success(compact('city', 'position'));
    }

}

